Optimal. Leaf size=212 \[ -\frac{2 a^7 c^3 \tan ^9(e+f x)}{9 f (a \sec (e+f x)+a)^{9/2}}-\frac{6 a^6 c^3 \tan ^7(e+f x)}{7 f (a \sec (e+f x)+a)^{7/2}}-\frac{2 a^5 c^3 \tan ^5(e+f x)}{5 f (a \sec (e+f x)+a)^{5/2}}+\frac{2 a^4 c^3 \tan ^3(e+f x)}{3 f (a \sec (e+f x)+a)^{3/2}}+\frac{2 a^{5/2} c^3 \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{f}-\frac{2 a^3 c^3 \tan (e+f x)}{f \sqrt{a \sec (e+f x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.190908, antiderivative size = 212, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3904, 3887, 461, 203} \[ -\frac{2 a^7 c^3 \tan ^9(e+f x)}{9 f (a \sec (e+f x)+a)^{9/2}}-\frac{6 a^6 c^3 \tan ^7(e+f x)}{7 f (a \sec (e+f x)+a)^{7/2}}-\frac{2 a^5 c^3 \tan ^5(e+f x)}{5 f (a \sec (e+f x)+a)^{5/2}}+\frac{2 a^4 c^3 \tan ^3(e+f x)}{3 f (a \sec (e+f x)+a)^{3/2}}+\frac{2 a^{5/2} c^3 \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{f}-\frac{2 a^3 c^3 \tan (e+f x)}{f \sqrt{a \sec (e+f x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3904
Rule 3887
Rule 461
Rule 203
Rubi steps
\begin{align*} \int (a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))^3 \, dx &=-\left (\left (a^3 c^3\right ) \int \frac{\tan ^6(e+f x)}{\sqrt{a+a \sec (e+f x)}} \, dx\right )\\ &=\frac{\left (2 a^6 c^3\right ) \operatorname{Subst}\left (\int \frac{x^6 \left (2+a x^2\right )^2}{1+a x^2} \, dx,x,-\frac{\tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{f}\\ &=\frac{\left (2 a^6 c^3\right ) \operatorname{Subst}\left (\int \left (\frac{1}{a^3}-\frac{x^2}{a^2}+\frac{x^4}{a}+3 x^6+a x^8-\frac{1}{a^3 \left (1+a x^2\right )}\right ) \, dx,x,-\frac{\tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{f}\\ &=-\frac{2 a^3 c^3 \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)}}+\frac{2 a^4 c^3 \tan ^3(e+f x)}{3 f (a+a \sec (e+f x))^{3/2}}-\frac{2 a^5 c^3 \tan ^5(e+f x)}{5 f (a+a \sec (e+f x))^{5/2}}-\frac{6 a^6 c^3 \tan ^7(e+f x)}{7 f (a+a \sec (e+f x))^{7/2}}-\frac{2 a^7 c^3 \tan ^9(e+f x)}{9 f (a+a \sec (e+f x))^{9/2}}-\frac{\left (2 a^3 c^3\right ) \operatorname{Subst}\left (\int \frac{1}{1+a x^2} \, dx,x,-\frac{\tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{f}\\ &=\frac{2 a^{5/2} c^3 \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{f}-\frac{2 a^3 c^3 \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)}}+\frac{2 a^4 c^3 \tan ^3(e+f x)}{3 f (a+a \sec (e+f x))^{3/2}}-\frac{2 a^5 c^3 \tan ^5(e+f x)}{5 f (a+a \sec (e+f x))^{5/2}}-\frac{6 a^6 c^3 \tan ^7(e+f x)}{7 f (a+a \sec (e+f x))^{7/2}}-\frac{2 a^7 c^3 \tan ^9(e+f x)}{9 f (a+a \sec (e+f x))^{9/2}}\\ \end{align*}
Mathematica [A] time = 1.21355, size = 134, normalized size = 0.63 \[ -\frac{a^2 c^3 \tan \left (\frac{1}{2} (e+f x)\right ) \sec ^4(e+f x) \sqrt{a (\sec (e+f x)+1)} \left ((164 \cos (e+f x)+1004 \cos (2 (e+f x))+68 \cos (3 (e+f x))+383 \cos (4 (e+f x))+901) \sqrt{\sec (e+f x)-1}-2520 \cos ^4(e+f x) \tan ^{-1}\left (\sqrt{\sec (e+f x)-1}\right )\right )}{1260 f \sqrt{\sec (e+f x)-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.28, size = 483, normalized size = 2.3 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.30711, size = 1098, normalized size = 5.18 \begin{align*} \left [\frac{315 \,{\left (a^{2} c^{3} \cos \left (f x + e\right )^{5} + a^{2} c^{3} \cos \left (f x + e\right )^{4}\right )} \sqrt{-a} \log \left (\frac{2 \, a \cos \left (f x + e\right )^{2} - 2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right ) + 1}\right ) - 2 \,{\left (383 \, a^{2} c^{3} \cos \left (f x + e\right )^{4} + 34 \, a^{2} c^{3} \cos \left (f x + e\right )^{3} - 132 \, a^{2} c^{3} \cos \left (f x + e\right )^{2} - 5 \, a^{2} c^{3} \cos \left (f x + e\right ) + 35 \, a^{2} c^{3}\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )}{315 \,{\left (f \cos \left (f x + e\right )^{5} + f \cos \left (f x + e\right )^{4}\right )}}, -\frac{2 \,{\left (315 \,{\left (a^{2} c^{3} \cos \left (f x + e\right )^{5} + a^{2} c^{3} \cos \left (f x + e\right )^{4}\right )} \sqrt{a} \arctan \left (\frac{\sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt{a} \sin \left (f x + e\right )}\right ) +{\left (383 \, a^{2} c^{3} \cos \left (f x + e\right )^{4} + 34 \, a^{2} c^{3} \cos \left (f x + e\right )^{3} - 132 \, a^{2} c^{3} \cos \left (f x + e\right )^{2} - 5 \, a^{2} c^{3} \cos \left (f x + e\right ) + 35 \, a^{2} c^{3}\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )\right )}}{315 \,{\left (f \cos \left (f x + e\right )^{5} + f \cos \left (f x + e\right )^{4}\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]